package com.masiyi.github.config;

import com.masiyi.github.template.GithubTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(value = GithubProperties.class)
public class GithubAutoConfiguration {


    @Autowired
    private GithubProperties githubProperties;



    @Bean
    public GithubTemplate getGithubTemplate() {
        return new GithubTemplate(githubProperties);
    }

}
